//手机登录--短信登录
Page({

  /**
   * 页面的初始数据
   */
  data: {
    TabCur: 0,
    scrollLeft: 0,
   // tabTitles: ["短信验证", "密码登陆"],
    tabTitles: ["短信验证"],
    cvsVerifyCode: {
      width: 120,
      height: 35
    },
    isError3:true
  },
  tabSelect(e) {
    this.setData({
      TabCur: e.currentTarget.dataset.id,
      scrollLeft: (e.currentTarget.dataset.id - 1) * 60
    })
  },
  //忘记密码
  onTapForgetPaw:function(e){
    tt.navigateTo({
      url: '../login-forget-password/login-forget-password',
    })

  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    let that = this;

  

  },
 
 //获取验证码
  onTapVericfyCode:function(e){
    let mobileNo =  e.detail.value.mobileNo;
    if(!mobileNo){
      tt.showModal({
        title: '请输入手机号',
      })
      return;
    }
    tt.navigateTo({
      url: '../login-mobile-code/login-mobile-code?mobileNo=' + mobileNo,
    })
  }
})